﻿using System;
using System.Collections.Generic;
using KZ.Utilities;
namespace KZ.Express.H.ENT
{
    public class CarrierENT : BaseENT
    {
        [Output]
        public int CarrierID { get; set; }

        [Required(ErrorMessage = "Bạn phải tên dịch vụ")]
        public string CarrierName { get; set; }

        public int OrderNumberLength { get; set; }

        [NotInsertUpdate]
        public bool IsDeleted { get; set; }

        public int CreatedBy { get; set; }

        [NotInsertUpdate]
        public DateTime? CreatedDate { get; set; }

        public int UpdatedBy { get; set; }

        [NotInsertUpdate]
        public DateTime? UpdatedDate { get; set; }

        [NotInsertUpdate]
        public override string Table { get { return "Carriers"; } }

        [NotInsertUpdate]
        public override string PrimaryKey { get { return "CarrierID"; } }

        [NotInsertUpdate]
        public override string PrimaryDescription { get { return "CarrierName"; } }

        [NotInsertUpdate]
        public override string InsertProcedure { get { return "proc_Carrier_Insert"; } }

        [NotInsertUpdate]
        public override string UpdateProcedure { get { return "proc_Carrier_Update"; } }

        [NotInsertUpdate]
        public override string SelectProcedure { get { return "proc_Carrier_Select"; } }
    }
}